package com.ojoin.trade.common_core.web.dao;

import com.ojoin.trade.common.exception.BusinessException;
import com.ojoin.trade.common.web.dao.BaseDao;
import com.ojoin.trade.common_core.web.domain.TbMerchantInfo;

import org.springframework.data.domain.Pageable;

import java.util.List;
import java.util.Map;

/**
 * Created with IntelliJ IDEA.
 * User: Administrator
 * Date: 15-11-16
 * Time: 下午6:09
 * To change this template use File | Settings | File Templates.
 */
public interface TbMerchantInfoDao extends BaseDao<TbMerchantInfo> {

    public void updateBySelective(TbMerchantInfo query)throws BusinessException;
    
    public  TbMerchantInfo queryInfoByJoinid(int joinid)throws BusinessException;

    public  TbMerchantInfo queryInfoByMhtno(String mhtno)throws BusinessException;
    
    public  TbMerchantInfo selectRealnameInfoByJoinid(int joinid)throws BusinessException;
    
    public List<TbMerchantInfo> queryAllInfo(Pageable page)throws BusinessException;
    
    public int updateRealStatusByJoinuserId(int joinuserid, int realStatus)throws BusinessException;

    public int updateMhtnoByJoinuserId(int joinuserid, String mhtno)throws BusinessException;

    public List<TbMerchantInfo> queryByNameVague(String name);
}
